package Library.Events;

import java.awt.event.*;
import Library.Game.*;

/**
 *
 */
public class ArmyPlacementEvent extends ActionEvent
{
    /**
     *
     * @param source
     * @param id
     * @param command
     * @param player
     * @param landID
     * @param totalArmies
     * @param newArmies
     */
    public ArmyPlacementEvent(Object source, int id, String command, IPlayer player, int landID, int totalArmies, int newArmies)
    {
	super(source, id, command);
	m_Player = player;
	m_LandID = landID;
	m_TotalArmies = totalArmies;
	m_NewArmies = newArmies;
    }
    
    /**
     *
     * @param source
     * @param id
     * @param command
     * @param modifiers
     * @param player
     * @param landID
     * @param totalArmies
     * @param newArmies
     */
    public ArmyPlacementEvent(Object source, int id, String command, int modifiers, IPlayer player, int landID, int totalArmies, int newArmies)
    {
	super(source, id, command, modifiers);
	m_Player = player;
	m_LandID = landID;
	m_TotalArmies = totalArmies;
	m_NewArmies = newArmies;
    }

    /**
     *
     * @param source
     * @param id
     * @param command
     * @param when
     * @param modifiers
     * @param player
     * @param landID
     * @param totalArmies
     * @param newArmies
     */
    public ArmyPlacementEvent(Object source, int id, String command, long when, int modifiers, IPlayer player, int landID, int totalArmies, int newArmies)
    {
	super(source, id, command, when, modifiers);
	m_Player = player;
	m_LandID = landID;
	m_TotalArmies = totalArmies;
	m_NewArmies = newArmies;
    }
    
    private IPlayer m_Player;
    /**
     *
     * @return
     */
    public IPlayer getPlayer()
    {
	return m_Player;
    }
    
    private int m_LandID;
    /**
     * 
     * @return
     */
    public int getLandID()
    {
	return m_LandID;
    }
    
    private int m_TotalArmies;
    /**
     *
     * @return
     */
    public int getTotalArmies()
    {
	return m_TotalArmies;
    }

    private int m_NewArmies;
    /**
     *
     * @return
     */
    public int getNewArmies()
    {
	return m_NewArmies;
    }
}
